<!--
    Document   : rdf
    Created on : 20 mars 2009, 10:46:27
    Author     : Keouirak
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="../../dialog/common/fck_dialog_common.js" type="text/javascript"></script>
        <script src="/FckEditor/fckeditor/editor/js/jquery-1.3.2.min.js" type="text/javascript"></script>
        <script src="/FckEditor/fckeditor/editor/js/jquery.uri.js" type="text/javascript"></script>
        <script src="/FckEditor/fckeditor/editor/js/jquery.xmlns.js" type="text/javascript"></script>
        <script src="/FckEditor/fckeditor/editor/js/jquery.curie.js" type="text/javascript"></script>
        <script src="/FckEditor/fckeditor/editor/js/jquery.datatype.js" type="text/javascript"></script>
        <script src="/FckEditor/fckeditor/editor/js/jquery.rdf.js" type="text/javascript"></script>
        <script src="/FckEditor/fckeditor/editor/js/jquery.rdfa.js" type="text/javascript"></script>
        <script language="javascript">

            var dialog = window.parent ;
            var oEditor = dialog.InnerDialogLoaded() ;
            var FCKLang = oEditor.FCKLang ;
            var FCKRdf = oEditor.FCKRdf ;
            var text = FCKRdf.getText();

            window.onload = function ()
            {
                // test de vérification si l'utilisateur a bien selectionné du texte.
                if(text==""){
                    document.write("Merci de bien vouloir selectionner du texte SVP !!");
                    document.write("<br/>");
                }
                //Affiche la selection de l'utilisateur
                document.getElementById("selection").innerHTML += "<b>" + text +"</b>";
                // Affichage du bouton
                dialog.SetOkButton( true ) ;
            }
            // fonction qui fait le traitement sur le bouton
            function Ok()
            {
                FCKRdf.rdfa2_divers(document.nameDiversFormRdfa.listeRdfaAttribut.value,document.nameDiversFormRdfa.valeurRdfaAttribut.value,document.nameDiversFormRdfa.listeBalise.value);
                return true;
            }
        </script>
    </head>
    <body>
        <div id="selection">Vous avez sélectionné : </div>
        <h1>Ajout d'attribut RDFa : </h1>
        <form method="post" action="#" id="idDiversFormRdfa" name="nameDiversFormRdfa">
            <table border="0">
                <tbody>
                    <tr>
                        <td>Selectionnez une balise html :</td>
                        <td><select name="listeBalise" id="lba">
                                <option>div</option>
                                <option>span</option>
                                <option>a</option>
                                <option>p</option>
                                <option>h1</option>
                                <option>h2</option>
                                <option>h3</option>
                        </select></td>
                    </tr>
                    <tr>
                        <td>Selectionnez son type :</td>
                        <td><select name="listeRdfaAttribut" id="lra">
                                <option>typeof</option>
                                <option>datetype</option>
                                <option>ressource</option>
                                <option>property</option>
                                <option>licence</option>
                                <option>about</option>
                                <option>src</option>
                                <option>href</option>
                                <option>rel</option>
                                <option>content</option>
                                <option>rev</option>
                        </select></td>
                    </tr>
                    <tr>
                        <td>Ajoutez sa valeur : </td>
                        <td><input type="text" name="valeurRdfaAttribut" value="Attribut"/></td>
                    </tr>
                </tbody>
            </table>
            <br />
        </form>
    </body>
</html>
